package Mangos::DB::Characters::GroupMember;

use strict;

use base qw(Mangos::DB::Characters);

__PACKAGE__->meta->setup
(
    table   => 'group_member',

    columns => 
    [
        leaderGuid => { type => 'integer', not_null => 1 },
        memberGuid => { type => 'integer', not_null => 1 },
        assistant  => { type => 'integer', not_null => 1 },
        subgroup   => { type => 'integer', not_null => 1 },
    ],

    primary_key_columns => [ 'leaderGuid', 'memberGuid' ],
);

1;

package Mangos::DB::Characters::GroupMember::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Characters::GroupMember' }

__PACKAGE__->make_manager_methods('group_member');

1;
